package ooday02;
//动物家族测试类
public class AnimalTest {
    public static void main(String[] args) {
        Dog dog=new Dog("小黑",2,"黑色");
        dog.eat();//Dog类重写之后的 动物共有
        dog.drink();// 动物共有
        dog.lookHome();//狗特有
        dog.swim();//Dog类重写之后的


        Chick chick=new Chick("小白",1,"白色");
        chick.eat();//小鸡类重写之后的
        chick.drink();//动物共有
        chick.layEggs();//小鸡特有

        Fish fish=new Fish("小金",6,"金色");
        fish.eat();//小鱼类重写之后的
        fish.drink();//动物共有
        fish.swim();//fish类重写后的


    }

}
